package core
{
	import flash.display.Sprite;
	import flash.display.Stage;
	
	import view.DebugPanel;
	import view.face.Hint;
	import view.hall.Hall;
	import view.hall.RankModul;
	import view.login.GameServerLogining;
	import view.panel.AddFriendPanel;
	import view.panel.BankPanel;
	import view.panel.BrokenPanel;
	import view.panel.HelpSubPanel;
	import view.panel.PlayPanel;
	import view.panel.PlayerDiscribePanel;
	import view.panel.RewardPanel;
	import view.panel.RoomInfoPanel;
	import view.panel.VipSetPanel;
	import view.panel.emote.EmotePanel;
	import view.panel.fast.FastReplyPanel;
	import view.panel.feed.FamousPanel;
	import view.panel.feed.FeedPanel;
	import view.panel.friend.FriendPanel;
	import view.panel.help.HelpPanel;
	import view.panel.item.ItemPanel;
	import view.panel.item.ItemShortcutPanel;
	import view.panel.mail.MailPanel;
	import view.panel.play.CardRecordPanel;
	import view.panel.play.SelfInfoPanel;
	import view.panel.play.SitInfoPanel;
	import view.panel.prompt.AlertButPanel;
	import view.panel.prompt.AlertPanel;
	import view.panel.prompt.AlertYesNoPanel;
	import view.panel.prompt.PromptSelectCombineCardsPanel;
	import view.panel.prompt.ServerPromptPanel;
	import view.panel.result.ResultPanel;
	import view.panel.task.TaskPanel;
	import view.table.Table;

	public class View
	{
		private static var instance:View;
		
		public function View()
		{
			if (instance)
			{
				throw Error("单列");
			}
		}
		
		public static function getInstance():View
		{
			if (instance == null)instance = new View();
			return instance;
		}
		
		//
		public var stage:Stage;
		public var scene:GanDengYan;
		//游戏层
		public var panelLayer:Sprite;
		public var hintLayer:Sprite;
		
		public var tableLayer:Table;
		public var playPanel:PlayPanel;
		public var hallLayer:Hall;
		public var gameServerLoginingLayer:GameServerLogining;
		
		
		public var hint:Hint;
		public var rankModul:RankModul;
		
		//面板
		public var roomInfoPanel:RoomInfoPanel;
		public var promptSelectCombineCardsPanel:PromptSelectCombineCardsPanel;
		public var resultPanel:ResultPanel;
		public var emotePanel:EmotePanel;
		public var fastReplyPanel:FastReplyPanel;
		public var serverPromptPanel:ServerPromptPanel;
		public var addFriendPanel:AddFriendPanel;
		public var mailPanel:MailPanel;
		public var friendPanel:FriendPanel;
		public var feedPanel:FeedPanel;
		public var helpPanel:HelpPanel;
		public var helpSubPanel:HelpSubPanel;
		public var playerItemPanel:PlayerDiscribePanel;
		public var alertPanel:AlertPanel;
		public var alertButPanel:AlertButPanel;
		public var debugPanel:DebugPanel;
		public var itemPanel:ItemPanel;
		public var rewardPanel:RewardPanel;
		public var itemShortCutPanel:ItemShortcutPanel;
		public var cardRecordPanel:CardRecordPanel;
		public var taskPanel:TaskPanel;
		public var bankPanel:BankPanel;
		public var alertYesNoPanel:AlertYesNoPanel;
		public var vipSetPanel:VipSetPanel;
		public var famousPanel:FamousPanel;
		public var sitInfoPanel:SitInfoPanel;
		public var selfInfoPanel:SelfInfoPanel;
		public var brokenPanel:BrokenPanel;
		
		public function init():void
		{
			panelLayer = new Sprite();
			tableLayer = new Table();
			hintLayer = new Sprite();
			
			
		}
		
		public function closeAllPanel():void
		{
			promptSelectCombineCardsPanel.close();
			resultPanel.close();
			emotePanel.close();
			fastReplyPanel.close();
			serverPromptPanel.close();
		}
	}
}